bitkeeper revision 1.636.1.3 (3fcdbd654OqdrTB4O2_GaQpn0Yh7Vw)
authorbr260@laudney.cl.cam.ac.uk <br260@laudney.cl.cam.ac.uk>
Wed, 3 Dec 2003 10:39:33 +0000 (10:39 +0000)
committerbr260@laudney.cl.cam.ac.uk <br260@laudney.cl.cam.ac.uk>
Wed, 3 Dec 2003 10:39:33 +0000 (10:39 +0000)
xc_private.h:
Propagate return values as far as possible.

tools/xc/lib/xc_private.h

index 26b2d95595c24858caa9166ee7b2c0137684b934..84ce9350cfe39cf7a4163ab3ce7069796701b85d 100644 (file)
@@ -105,8 +105,6 @@ static inline int do_dom0_op(int xc_handle, dom0_op_t *op)
         goto out2;
     }
 
-    ret = 0;
-
  out2: (void)munlock(op, sizeof(*op));
  out1: return ret;
 }
@@ -128,8 +126,6 @@ static inline int do_network_op(int xc_handle, network_op_t *op)
     if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 )
         goto out2;
 
-    ret = 0;
-
  out2: (void)munlock(op, sizeof(*op));
  out1: return ret;
 }